<!-- Requires you to define +header+ and +projects+ instances -->
<h1><%= header %></h1>

<% unless projects.empty? %>
<table>
  <tr>
    <th></th>
    <th align="left" class="<%= @sorter.column_order_class('short') %>"><%= link_to 'Key', @sorter.to_link('short') %></th>
    <th align="left" class="<%= @sorter.column_order_class('name') %>"><%= link_to 'Name', @sorter.to_link('name') %></th>
    <th>Assignees</th>
  </tr>
  
<% for project in projects %>
  <tr>
    <td><%= link_to_destroy(project)%></td>
    <td><%=h project.short %></td>
    <td><%=h project.name %></td>
    <td><%=h fmt_assignees(project.assignees) %></td>
    <td><%= link_to 'Administer', :action => 'edit', :id => project %></td>
  </tr>
<% end %>
</table>
<% end %>
